import request from '@/utils/request'

// 查询工资计提列表
export function listGzjt(query) {
  return request({
    url: '/basebill/gzjt/list',
    method: 'get',
    params: query
  })
}

// 查询工资计提详细
export function getGzjt(fid) {
  return request({
    url: '/basebill/gzjt/' + fid,
    method: 'get'
  })
}

// 新增工资计提
export function addGzjt(data) {
  return request({
    url: '/basebill/gzjt',
    method: 'post',
    data: data
  })
}

// 修改工资计提
export function updateGzjt(data) {
  return request({
    url: '/basebill/gzjt',
    method: 'put',
    data: data
  })
}

// 删除工资计提
export function delGzjt(fid) {
  return request({
    url: '/basebill/gzjt/' + fid,
    method: 'delete'
  })
}

//导入工资计提
export function importGzjt(fid) {
  return request({
    url: '/basebill/gzjt/importGzjt/' + fid,
    method: 'get'
  })
}
